package com.relytosoft.mizar.media.analyze.services.controller;

import com.relytosoft.mizar.media.common.entity.pojo.request.btdl.common.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

import static com.relytosoft.mizar.media.common.constant.AlgoFactoryConstants.BIT_DA_LU;


/**
 * @author Jierry
 * @version 2022/5/10.
 */

public class AyDataBaseController {

    private static final String ALGO_FACTORY = BIT_DA_LU;

    protected BtdlDataReq toDataReq(HttpServletRequest request) {
        switch (ALGO_FACTORY) {
            case BIT_DA_LU:
                return BtdlConvertReq.toDataReq(request);
            default:
                return null;
        }
    }


    protected BtdlStatusReq toStatusReq(HttpServletRequest request) {
        switch (ALGO_FACTORY) {
            case BIT_DA_LU:
                return BtdlConvertReq.toStatusReq(request);
            default:
                return null;
        }
    }

    protected List<BtdlFaceControlReq> toFaceControlReq(HttpServletRequest request) {
        switch (ALGO_FACTORY) {
            case BIT_DA_LU:
                return BtdlConvertReq.toFaceControlReq(request);
            default:
                return null;
        }
    }

    protected BtdlStructureControlReq toStruControlReq(HttpServletRequest request) {
        switch (ALGO_FACTORY) {
            case BIT_DA_LU:
                return BtdlConvertReq.toStruControlReq(request);
            default:
                return null;
        }
    }

    protected BtdlBehaviorDataReq toBehaviorDataReq(HttpServletRequest request) {
        switch (ALGO_FACTORY) {
            case BIT_DA_LU:
                return BtdlConvertReq.toBehaviorDataReq(request);
            default:
                return null;
        }
    }


}
